NAME=report
BIB=refs

define  cleanrub
rm -f $(NAME).aux $(NAME).dvi $(NAME).log *~ $(NAME).ps
endef


all: $(NAME)

# TODO add bib tex command
$(NAME): $(NAME).tex
	latex $(NAME).tex
	dvips $(NAME).dvi
	ps2pdf $(NAME).ps
	$(cleanrub)
	
clean:
	rm -f $(NAME).aux $(NAME).dvi $(NAME).log *~ $(NAME).ps $(NAME).pdf $(NAME).toc *.bbl *.blg
